package com.baoyz.swipemenulistview;

import android.view.MotionEvent;
import android.view.animation.Interpolator;

/**
 * Created by qibo.yu on 2015/9/23.
 */
public interface SwipeMenuListViewInterface {

    public void setCloseInterpolator(Interpolator interpolator);
    public void setOpenInterpolator(Interpolator interpolator);
    public Interpolator getOpenInterpolator();
    public Interpolator getCloseInterpolator();
    public boolean onInterceptTouchEvent(MotionEvent ev);
    public boolean onTouchEvent(MotionEvent ev);
    public void smoothOpenMenu(int position);
    public void smoothCloseMenu();
    public void setMenuCreator(SwipeMenuCreator menuCreator);
    public void setOnSwipeListener(OnSwipeListener onSwipeListener);
    public void setOnMenuItemClickListener(OnMenuItemClickListener onMenuItemClickListener);
    public void setOnMenuStateChangeListener(OnMenuStateChangeListener onMenuStateChangeListener);
    public void setSwipeDirection(int direction);

    public  interface OnMenuItemClickListener {
        boolean onMenuItemClick(int position, SwipeMenu menu, int index);
    }

    public static interface OnSwipeListener {
        void onSwipeStart(int position);

        void onSwipeEnd(int position);
    }

    public static interface OnMenuStateChangeListener {
        void onMenuOpen(int position);

        void onMenuClose(int position);
    }
}
